package com.eascs.datalist.service;

import java.util.List;

import com.eascs.admin.api.form.O2oAfterLoanForm;
import com.eascs.app.dao.PageResult;
import com.eascs.app.dao.SqlPageQuery;
import com.eascs.datalist.entity.O2oDataListEntity;

public interface O2oDataListService {
	public PageResult<Object[]> findByPage(SqlPageQuery<Object[]> pageQuery);

	public List<O2oDataListEntity> findByIdList(String id);

	public int updateEntityById(O2oDataListEntity loanEntity);

	public int deleteEntityById(O2oDataListEntity loanEntity);

	public int saveEntity(O2oDataListEntity loanEntity);
	
	public O2oDataListEntity findO2oDataListEntity(String datalistno);
	
	public O2oDataListEntity findCode(String loanapplyNo,String code);
	
	public O2oDataListEntity findCode(String loanapplyNo,String code,String sponsorId);
	
	public List<O2oDataListEntity> findByEntityList(String loanapplyNo);
	
	public List<O2oDataListEntity> findByEntityList(String loanapplyNo,String sponsorId);
	
	public boolean checkDataCode(String type,String mater);
	
	public boolean checkLoanApply(String loanApplyNo);
	
	public boolean checkUserInfo(String loanApplyNo);
	
	public boolean checkZxAttachment(String type,String mater);
	
	public boolean checkCodeAttachment(String loanapplyNo,String code);
	public PageResult<Object[]> getCreditByPage(O2oAfterLoanForm entity);
	
	public List<O2oDataListEntity> findByEntityListNZX(String loanapplyNo,String zxno);

	public boolean isDatalistExsit(String loanapplyNo, String code);

	public boolean checkQYZXApply(String id);
	
	boolean checkPFDataCode(String loannapplyNo);
	
}
